#!/usr/bin/env ruby -wKU

require 'xcodeproj'

enterprise = true

appiconName = 'AppIcon'
infoplistFile = '$(SRCROOT)/retailapp/Supporting Files/retailApp-Info.plist'
bundleIdentifier = 'com.2dfire.Retail'

project_path = File.join(File.expand_path("..",Dir.pwd), "retailapp.xcodeproj")
puts project_path
project = Xcodeproj::Project.open(project_path)
project.targets.each do |target|
    target.build_configurations.each do |config|
    	if !config.build_settings['TEST_HOST'] then
    		      config.build_settings['ASSETCATALOG_COMPILER_APPICON_NAME'] = appiconName
                  config.build_settings['INFOPLIST_FILE'] = infoplistFile
#config.build_settings['PRODUCT_BUNDLE_IDENTIFIER'] = bundleIdentifier
    	end


    end
end

project.save

  

